
angular.module('xianwan')
    .factory('EmojiParse', function () {

        var emojiArr = {
            "[高兴]": "\ud83d\ude04",
            "[开心]": "\ud83d\ude03",
            "[微笑]": "\ud83d\ude00",
            "[可爱]": "\ud83d\ude0a",
            "[害羞]": "\u263a",
            "[挤眼]": "\ud83d\ude09",

            "[色]": "\ud83d\ude0d",
            "[飞吻]": "\ud83d\ude18",
            "[亲吻]": "\ud83d\ude1a",
            "[亲亲]": "\ud83d\ude17",
            "[笑吻]": "\ud83d\ude19",
            "[调皮]": "\ud83d\ude1c",

            "[赖皮]": "\ud83d\ude1d",
            "[吐舌]": "\ud83d\ude1b",
            "[发呆]": "\ud83d\ude33",
            "[呲牙]": "\ud83d\ude01",
            "[惆怅]": "\ud83d\ude14",
            "[思考]": "\ud83d\ude0c",

            "[无感]": "\ud83d\ude12",
            "[伤心]": "\ud83d\ude1e",
            "[晕]": "\ud83d\ude23",
            "[流泪]": "\ud83d\ude22",
            "[笑抽]": "\ud83d\ude02",
            "[大哭]": "\ud83d\ude2d",

            "[瞌睡]": "\ud83d\ude2a",
            "[流汗]": "\ud83d\ude25",
            "[冷汗]": "\ud83d\ude30",
            "[笑出汗]": "\ud83d\ude05",
            "[汗]": "\ud83d\ude13",
            "[疲惫]": "\ud83d\ude29",

            "[累]": "\ud83d\ude2b",
            "[衰]": "\ud83d\ude28",
            "[恐怖]": "\ud83d\ude31",
            "[生气]": "\ud83d\ude20",
            "[发怒]": "\ud83d\ude21",
            "[赢]": "\ud83d\ude24",

            "[崩溃]": "\ud83d\ude16",
            "[憨笑]": "\ud83d\ude06",
            "[得意]": "\ud83d\ude0b",
            "[感冒]": "\ud83d\ude37",
            "[酷]": "\ud83d\ude0e",
            "[睡觉]": "\ud83d\ude34",

            "[目眩]": "\ud83d\ude35",
            "[混乱]": "\ud83d\ude32",
            "[担心]": "\ud83d\ude1f",
            "[皱眉]": "\ud83d\ude26",
            "[痛苦]": "\ud83d\ude27",
            "[笑鬼]": "\ud83d\ude08",

            "[魔鬼]": "\ud83d\udc7f",
            "[开口]": "\ud83d\ude2e",
            "[鬼脸]": "\ud83d\ude2c",
            "[脸]": "\ud83d\ude10",
            "[困惑]": "\ud83d\ude15",
            "[沉默]": "\ud83d\ude2f",

            "[闭嘴]": "\ud83d\ude36",
            "[无辜]": "\ud83d\ude07",
            "[阴险]": "\ud83d\ude0f",
            "[无语]": "\ud83d\ude11",
            "[巫师]": "\ud83d\udc72",
            "[厨师]": "\ud83d\udc73",

            "[警察]": "\ud83d\udc6e",
            "[建筑师]": "\ud83d\udc77",
            "[士兵]": "\ud83d\udc82",
            "[婴儿]": "\ud83d\udc76",
            "[男孩]": "\ud83d\udc66",
            "[女孩]": "\ud83d\udc67",

            "[爸爸]": "\ud83d\udc68",
            "[妈妈]": "\ud83d\udc69",
            "[爷爷]": "\ud83d\udc74",
            "[奶奶]": "\ud83d\udc75",
            "[学生]": "\ud83d\udc71",
            "[天使]": "\ud83d\udc7c",

            "[公主]": "\ud83d\udc78",
            "[笑脸猫]": "\ud83d\ude3a",
            "[微笑猫]": "\ud83d\ude38",
            "[色猫]": "\ud83d\ude3b",
            "[亲亲猫]": "\ud83d\ude3d",
            "[假笑猫]": "\ud83d\ude3c",

            "[尖叫猫]": "\ud83d\ude40",
            "[哭猫]": "\ud83d\ude3f",
            "[笑哭猫]": "\ud83d\ude39",
            "[撅嘴猫]": "\ud83d\ude3e",
            "[怪物]": "\ud83d\udc79",
            "[小妖精]": "\ud83d\udc7a",

            "[非礼勿视]": "\ud83d\ude48",
            "[非礼勿听]": "\ud83d\ude49",
            "[非礼勿说]": "\ud83d\ude4a",
            "[骷髅]": "\ud83d\udc80",
            "[外星人]": "\ud83d\udc7d",
            "[便便]": "\ud83d\udca9",

            "[火焰]": "\ud83d\udd25",
            "[闪烁星星]": "\u2728",
            "[星星]": "\ud83c\udf1f",
            "[头晕]": "\ud83d\udcab",
            "[爆炸]": "\ud83d\udca5",
            "[青筋]": "\ud83d\udca2",

            "[水滴]": "\ud83d\udca6",
            "[雨滴]": "\ud83d\udca7",
            "[睡觉]": "\ud83d\udca4",
            "[喷气]": "\ud83d\udca8",
            "[耳朵]": "\ud83d\udc42",
            "[眼睛]": "\ud83d\udc40",

            "[鼻子]": "\ud83d\udc43",
            "[舌头]": "\ud83d\udc45",
            "[嘴唇]": "\ud83d\udc44",
            "[强]": "\ud83d\udc4d",
            "[鄙视]": "\ud83d\udc4e",
            "[OK]": "\ud83d\udc4c",

            "[出拳]": "\ud83d\udc4a",
            "[拳头]": "\u270a",
            "[胜利]": "\u270c",
            "[手掌]": "\ud83d\udc4b",
            "[停]": "\u270b",
            "[双手]": "\ud83d\udc50",

            "[向上]": "\ud83d\udc46",
            "[向下]": "\ud83d\udc47",
            "[向右]": "\ud83d\udc49",
            "[向左]": "\ud83d\udc48",
            "[不是我]": "\ud83d\ude4c",
            "[拜佛]": "\ud83d\ude4f",

            "[第一]": "\u261d",
            "[鼓掌]": "\ud83d\udc4f",
            "[肌肉]": "\ud83d\udcaa",
            "[走路]": "\ud83d\udeb6",
            "[跑步]": "\ud83c\udfc3",
            "[美女]": "\ud83d\udc83",

            "[情侣]": "\ud83d\udc6b",
            "[家人]": "\ud83d\udc6a",
            "[兄弟]": "\ud83d\udc6c",
            "[姐妹]": "\ud83d\udc6d",
            "[夫妻]": "\ud83d\udc8f",
            "[夫妻同心]": "\ud83d\udc91",

            "[跳舞]": "\ud83d\udc6f",
            "[抱头]": "\ud83d\ude46",
            "[交叉]": "\ud83d\ude45",
            "[摆手]": "\ud83d\udc81",
            "[举手]": "\ud83d\ude4b",
            "[洗头]": "\ud83d\udc86",

            "[剪发]": "\ud83d\udc87",
            "[美甲]": "\ud83d\udc85",
            "[新娘]": "\ud83d\udc70",
            "[撇嘴女人]": "\ud83d\ude4e",
            "[皱眉女人]": "\ud83d\ude4d",
            "[考试]": "\ud83d\ude47",

            "[礼帽]": "\ud83c\udfa9",
            "[皇冠]": "\ud83d\udc51",
            "[草帽]": "\ud83d\udc52",
            "[板鞋]": "\ud83d\udc5f",
            "[男鞋]": "\ud83d\udc5e",
            "[女鞋]": "\ud83d\udc61",

            "[高跟鞋]": "\ud83d\udc60",
            "[靴子]": "\ud83d\udc62",
            "[T恤]": "\ud83d\udc55",
            "[衬衫]": "\ud83d\udc54",
            "[女士上衣]": "\ud83d\udc5a",
            "[连衣裙]": "\ud83d\udc57",

            "[运动上衣]": "\ud83d\udc57",
            "[裤子]": "\ud83d\udc56",
            "[和服]": "\ud83d\udc58",
            "[内衣]": "\ud83d\udc59",
            "[公文包]": "\ud83d\udcbc",
            "[手提包]": "\ud83d\udc5c",

            "[袋子]": "\ud83d\udc5d",
            "[钱包]": "\ud83d\udc5b",
            "[眼镜]": "\ud83d\udc53",
            "[蝴蝶结]": "\ud83c\udf80",
            "[雨伞]": "\ud83c\udf02",
            "[口红]": "\ud83d\udc84",

            "[黄心]": "\ud83d\udc9b",
            "[蓝心]": "\ud83d\udc99",
            "[紫心]": "\ud83d\udc9c",
            "[绿心]": "\ud83d\udc9a",
            "[爱心]": "\u2764",
            "[心碎]": "\ud83d\udc94",

            "[心动]": "\ud83d\udc97",
            "[心跳]": "\ud83d\udc93",
            "[心]": "\ud83d\udc95",
            "[喜欢]": "\ud83d\udc96",
            "[爱心]": "\ud83d\udc9e",
            "[一见倾心]": "\ud83d\udc98",


            "[情书]": "\ud83d\udc8c",
            "[吻]": "\ud83d\udc8b",
            "[钻戒]": "\ud83d\udc8d",
            "[宝石]": "\ud83d\udc8e",
            "[个人]": "\ud83d\udc64",
            "[多人]": "\ud83d\udc65",

            "[消息]": "\ud83d\udcac",
            "[脚印]": "\ud83d\udc63",
            "[云]": "\ud83d\udcad",

            "[狗狗]": "\ud83d\udc36",
            "[狼]": "\ud83d\udc3a",
            "[猫咪]": "\ud83d\udc31",
            "[灰鼠]": "\ud83d\udc2d",
            "[花鼠]": "\ud83d\udc39",
            "[兔子]": "\ud83d\udc30",

            "[青蛙]": "\ud83d\udc38",
            "[老虎]": "\ud83d\udc2f",
            "[考拉]": "\ud83d\udc28",
            "[灰熊]": "\ud83d\udc3b",
            "[猪头]": "\ud83d\udc37",
            "[猪鼻子]": "\ud83d\udc3d",

            "[牛头]": "\ud83d\udc2e",
            "[野猪]": "\ud83d\udc17",
            "[猴子]": "\ud83d\udc35",
            "[小猴]": "\ud83d\udc12",
            "[小马]": "\ud83d\udc34",
            "[绵羊]": "\ud83d\udc11",

            "[大象]": "\ud83d\udc18",
            "[熊猫]": "\ud83d\udc3c",
            "[黑鸟]": "\ud83d\udc27",
            "[灰鸟]": "\ud83d\udc26",
            "[黄鸟]": "\ud83d\udc24",
            "[小鸡]": "\ud83d\udc25",

            "[孵小鸡]": "\ud83d\udc23",
            "[公鸡]": "\ud83d\udc14",
            "[蛇]": "\ud83d\udc0d",
            "[乌龟]": "\ud83d\udc22",
            "[毛毛虫]": "\ud83d\udc1b",
            "[蜜蜂]": "\ud83d\udc1d",

            "[蚂蚁]": "\ud83d\udc1c",
            "[甲虫]": "\ud83d\udc1e",
            "[蜗牛]": "\ud83d\udc0c",
            "[章鱼]": "\ud83d\udc19",
            "[贝壳]": "\ud83d\udc1a",
            "[热带鱼]": "\ud83d\udc20",

            "[鱼儿]": "\ud83d\udc1f",
            "[海豚]": "\ud83d\udc2c",
            "[鲸]": "\ud83d\udc33",
            "[鲸鱼]": "\ud83d\udc0b",
            "[奶牛]": "\ud83d\udc04",
            "[羊]": "\ud83d\udc0f",

            "[鼠]": "\ud83d\udc00",
            "[水牛]": "\ud83d\udc03",
            "[虎]": "\ud83d\udc05",
            "[兔]": "\ud83d\udc07",
            "[龙]": "\ud83d\udc09",
            "[马]": "\ud83d\udc0e",

            "[羊]": "\ud83d\udc10",
            "[鸡]": "\ud83d\udc13",
            "[狗]": "\ud83d\udc15",
            "[猪]": "\ud83d\udc16",
            "[小白鼠]": "\ud83d\udc01",
            "[牛]": "\ud83d\udc02",

            "[龙头]": "\ud83d\udc32",
            "[河豚]": "\ud83d\udc21",
            "[鳄鱼]": "\ud83d\udc0a",
            "[骆驼]": "\ud83d\udc2b",
            "[单峰骆驼]": "\ud83d\udc2a",
            "[豹]": "\ud83d\udc06",

            "[猫]": "\ud83d\udc08",
            "[贵宾犬]": "\ud83d\udc29",
            "[爪印]": "\ud83d\udc3e",
            "[康乃馨]": "\ud83d\udc90",
            "[桃花]": "\ud83c\udf38",
            "[郁金香]": "\ud83c\udf37",

            "[四叶草]": "\ud83c\udf40",
            "[玫瑰]": "\ud83c\udf39",
            "[向日葵]": "\ud83c\udf3b",
            "[鲜花]": "\ud83c\udf3a",
            "[枫叶]": "\ud83c\udf41",
            "[绿叶]": "\ud83c\udf43",

            "[黄叶]": "\ud83c\udf42",
            "[草]": "\ud83c\udf3f",
            "[稻谷]": "\ud83c\udf3e",
            "[蘑菇]": "\ud83c\udf44",
            "[仙人掌]": "\ud83c\udf35",
            "[椰树]": "\ud83c\udf34",

            "[常青树]": "\ud83c\udf32",
            "[落叶树]": "\ud83c\udf33",
            "[栗子]": "\ud83c\udf30",
            "[幼苗]": "\ud83c\udf31",
            "[开花]": "\ud83c\udf3c",
            "[地球]": "\ud83c\udf10",

            "[太阳]": "\ud83c\udf1e",
            "[满月脸]": "\ud83c\udf1d",
            "[新月脸]": "\ud83c\udf1a",
            "[新月]": "\ud83c\udf11",
            "[上峨眉月]": "\ud83c\udf12",
            "[上玄月]": "\ud83c\udf13",

            "[上凸月]": "\ud83c\udf14",
            "[满月]": "\ud83c\udf15",
            "[下凸月]": "\ud83c\udf16",
            "[下玄月]": "\ud83c\udf17",
            "[下峨眉月]": "\ud83c\udf18",
            "[上玄月脸]": "\ud83c\udf1c",

            "[下玄月脸]": "\ud83c\udf1b",
            "[月亮]": "\ud83c\udf19",
            "[非洲]": "\ud83c\udf0d",
            "[美洲]": "\ud83c\udf0e",
            "[亚洲]": "\ud83c\udf0f",
            "[火山]": "\ud83c\udf0b",

            "[银河系]": "\ud83c\udf0c",
            "[问号]": "\u2753",
            "[星星]": "\u2B50\uFE0F",
            "[晴天]": "\u2600",
            "[多云]": "\u26c5",
            "[阴天]": "\u2601",

            "[闪电]": "\u26a1",
            "[雨天]": "\u2614",
            "[雪花]": "\u2744",
            "[雪人]": "\u26c4",
            "[热带风暴]": "\ud83c\udf00",
            "[雾霾]": "\ud83c\udf01",

            "[彩虹]": "\ud83c\udf08",
            "[海洋]": "\ud83c\udf0a",

            "[盆景]": "\ud83c\udf8d",
            "[爱的礼物]": "\ud83d\udc9d",
            "[婚礼]": "\ud83c\udf8e",
            "[箱子]": "\ud83c\udf92",
            "[学位帽]": "\ud83c\udf93",
            "[鲤鱼旗]": "\ud83c\udf8f",

            "[烟花]": "\ud83c\udf86",
            "[烟火]": "\ud83c\udf87",
            "[风铃]": "\ud83c\udf90",
            "[夜色]": "\ud83c\udf91",
            "[南瓜灯]": "\ud83c\udf83",
            "[小鬼]": "\ud83d\udc7b",

            "[圣诞老人]": "\ud83c\udf85",
            "[圣诞树]": "\ud83c\udf84",
            "[礼物]": "\ud83c\udf81",
            "[七夕树]": "\ud83c\udf8b",
            "[礼花]": "\ud83c\udf89",
            "[纸屑球]": "\ud83c\udf8a",

            "[气球]": "\ud83c\udf88",
            "[日本旗]": "\ud83c\udf8c",
            "[水晶球]": "\ud83d\udd2e",
            "[电影摄影机]": "\ud83c\udfa5",
            "[相机]": "\ud83d\udcf7",
            "[摄像机]": "\ud83d\udcf9",

            "[磁带]": "\ud83d\udcfc",
            "[光盘]": "\ud83d\udcbf",
            "[CD]": "\ud83d\udcc0",
            "[光碟]": "\ud83d\udcbd",
            "[软盘]": "\ud83d\udcbe",
            "[计算机]": "\ud83d\udcbb",

            "[手机]": "\ud83d\udcf1",
            "[电话]": "\u260e",
            "[听筒]": "\ud83d\udcde",
            "[磁带]": "\ud83d\udcdf",
            "[传真]": "\ud83d\udce0",
            "[广播]": "\ud83d\udce1",

            "[电视机]": "\ud83d\udcfa",
            "[收音机]": "\ud83d\udcfb",
            "[#号]": "\ud83d\udd08",
            "[扬声器]": "\ud83d\udd09",
            "[声音]": "\ud83d\udd0a",
            "[静音]": "\ud83d\udd07",

            "[铃铛]": "\ud83d\udd14",
            "[无音铃铛]": "\ud83d\udd15",
            "[大喇叭]": "\ud83d\udce2",
            "[小喇叭]": "\ud83d\udce3",
            "[沙漏]": "\u23f3",
            "[流沙]": "\u231b",

            "[闹钟]": "\u23f0",
            "[手表]": "\u231a",
            "[开源]": "\ud83d\udd13",
            "[锁头]": "\ud83d\udd12",
            "[笔锁]": "\ud83d\udd0f",
            "[锁]": "\ud83d\udd10",

            "[钥匙]": "\ud83d\udd11",
            "[右放大镜]": "\ud83d\udd0e",
            "[灯泡]": "\ud83d\udca1",
            "[手电筒]": "\ud83d\udd26",
            "[高亮度]": "\ud83d\udd06",
            "[低亮度]": "\ud83d\udd05",

            "[电插头]": "\ud83d\udd0c",
            "[电池]": "\ud83d\udd0b",
            "[放大镜]": "\ud83d\udd0d",
            "[浴缸]": "\ud83d\udec1",
            "[沐浴]": "\ud83d\udec0",
            "[淋浴]": "\ud83d\udebf",

            "[马桶]": "\ud83d\udebd",
            "[扳手]": "\ud83d\udd27",
            "[螺丝]": "\ud83d\udd29",
            "[锤子]": "\ud83d\udd28",
            "[门]": "\ud83d\udeaa",
            "[香烟]": "\ud83d\udeac",

            "[炸弹]": "\ud83d\udca3",
            "[手枪]": "\ud83d\udd2b",
            "[水果刀]": "\ud83d\udd2a",
            "[药丸]": "\ud83d\udc8a",
            "[针管]": "\ud83d\udc89",
            "[金钱]": "\ud83d\udcb0",

            "[日元]": "\ud83d\udcb4",
            "[美元]": "\ud83d\udcb5",
            "[英镑]": "\ud83d\udcb7",
            "[欧元]": "\ud83d\udcb6",
            "[信用卡]": "\ud83d\udcb3",
            "[钱的翅膀]": "\ud83d\udcb8",

            "[来电]": "\ud83d\udcf2",
            "[电子邮件]": "\ud83d\udce7",
            "[收件箱]": "\ud83d\udce5",
            "[发件箱]": "\ud83d\udce4",
            "[信封]": "\u2709",
            "[收信]": "\ud83d\udce9",

            "[来信]": "\ud83d\udce8",
            "[号角]": "\ud83d\udcef",
            "[邮箱]": "\ud83d\udceb",
            "[关闭邮箱]": "\ud83d\udcea",
            "[邮件箱]": "\ud83d\udcec",
            "[空邮箱]": "\ud83d\udced",

            "[邮筒]": "\ud83d\udcee",
            "[收纳箱]": "\ud83d\udce6",
            "[备忘录]": "\ud83d\udcdd",
            "[页面对]": "\ud83d\udcc4",
            "[页卷曲]": "\ud83d\udcc3",
            "[书签]": "\ud83d\udcd1",

            "[条形图]": "\ud83d\udcca",
            "[向上趋势]": "\ud83d\udcc8",
            "[向下趋势]": "\ud83d\udcc9",
            "[滚动]": "\ud83d\udcdc",
            "[剪切]": "\ud83d\udccb",
            "[日历]": "\ud83d\udcc5",

            "[日期]": "\ud83d\udcc6",
            "[索引]": "\ud83d\udcc7",
            "[文件夹]": "\ud83d\udcc1",
            "[开文件夹]": "\ud83d\udcc2",
            "[剪刀]": "\u2702",
            "[图钉]": "\ud83d\udccc",

            "[回形针]": "\ud83d\udcce",
            "[钢笔]": "\u2712",
            "[铅笔]": "\u270f",
            "[直尺]": "\ud83d\udccf",
            "[三角板]": "\ud83d\udcd0",
            "[红色的书]": "\ud83d\udcd5",
            "[绿色的书]": "\ud83d\udcd7",
            "[蓝色的书]": "\ud83d\udcd8",
            "[橙色的书]": "\ud83d\udcd9",
            "[灰笔记本]": "\ud83d\udcd3",
            "[黄笔记本]": "\ud83d\udcd4",
            "[账本]": "\ud83d\udcd2",

            "[书本]": "\ud83d\udcda",
            "[看书]": "\ud83d\udcd6",
            "[书签]": "\ud83d\udd16",
            "[徽章]": "\ud83d\udcdb",
            "[显微镜]": "\ud83d\udd2c",
            "[望远镜]": "\ud83d\udd2d",

            "[报纸]": "\ud83d\udcf0",
            "[画画]": "\ud83c\udfa8",
            "[电影]": "\ud83c\udfac",
            "[麦克风]": "\ud83c\udfa4",
            "[耳机]": "\ud83c\udfa7",
            "[乐谱]": "\ud83c\udfbc",

            "[音符]": "\ud83c\udfb5",
            "[乐符]": "\ud83c\udfb6",
            "[键盘乐器]": "\ud83c\udfb9",
            "[小提琴]": "\ud83c\udfbb",
            "[喇叭]": "\ud83c\udfba",
            "[萨克斯]": "\ud83c\udfb7",

            "[吉他]": "\ud83c\udfb8",
            "[火星人]": "\ud83d\udc7e",
            "[游戏机]": "\ud83c\udfae",
            "[黑色小丑]": "\ud83c\udccf",
            "[扑克]": "\ud83c\udfb4",
            "[麻将]": "\ud83c\udc04",

            "[骰子]": "\ud83c\udfb2",
            "[飞镖]": "\ud83c\udfaf",
            "[棕橄榄球]": "\ud83c\udfc8",
            "[篮球]": "\ud83c\udfc0",
            "[足球]": "\u26bd",
            "[棒球]": "\u26be",

            "[网球]": "\ud83c\udfbe",
            "[桌球]": "\ud83c\udfb1",
            "[橙橄榄球]": "\ud83c\udfc9",
            "[保龄球]": "\ud83c\udfb3",
            "[高尔夫]": "\u26f3",
            "[骑山地车]": "\ud83d\udeb5",

            "[骑自行车]": "\ud83d\udeb4",
            "[格子旗]": "\ud83c\udfc1",
            "[骑马]": "\ud83c\udfc7",
            "[奖杯]": "\ud83c\udfc6",
            "[滑雪板]": "\ud83c\udfbf",
            "[滑雪]": "\ud83c\udfc2",

            "[游泳]": "\ud83c\udfca",
            "[冲浪]": "\ud83c\udfc4",
            "[钓鱼]": "\ud83c\udfa3",
            "[咖啡]": "\u2615",
            "[绿茶]": "\ud83c\udf75",
            "[米酒]": "\ud83c\udf76",

            "[牛奶]": "\ud83c\udf7c",
            "[啤酒]": "\ud83c\udf7a",
            "[对饮]": "\ud83c\udf7b",
            "[鸡尾酒]": "\ud83c\udf78",
            "[果汁]": "\ud83c\udf79",
            "[红酒]": "\ud83c\udf77",

            "[刀叉]": "\ud83c\udf74",
            "[披萨]": "\ud83c\udf55",
            "[汉堡]": "\ud83c\udf54",
            "[薯条]": "\ud83c\udf5f",
            "[鸡腿]": "\ud83c\udf57",
            "[肉骨]": "\ud83c\udf56",

            "[炸酱面]": "\ud83c\udf5d",
            "[咖喱饭]": "\ud83c\udf5b",
            "[炸河虾]": "\ud83c\udf64",
            "[饭盒]": "\ud83c\udf71",
            "[寿司]": "\ud83c\udf63",
            "[鱼饼]": "\ud83c\udf65",

            "[饭团]": "\ud83c\udf65",
            "[点心]": "\ud83c\udf58",
            "[米饭]": "\ud83c\udf5a",
            "[面条]": "\ud83c\udf5c",
            "[汤]": "\ud83c\udf72",
            "[关东煮]": "\ud83c\udf62",

            "[丸子]": "\ud83c\udf61",
            "[鸡蛋]": "\ud83c\udf73",
            "[面包]": "\ud83c\udf5e",
            "[炸圈饼]": "\ud83c\udf69",
            "[蛋奶冻]": "\ud83c\udf6e",
            "[甜筒]": "\ud83c\udf66",

            "[冰淇淋]": "\ud83c\udf68",
            "[刨冰]": "\ud83c\udf67",
            "[生日蛋糕]": "\ud83c\udf82",
            "[蛋糕]": "\ud83c\udf70",
            "[饼干]": "\ud83c\udf6a",
            "[巧克力]": "\ud83c\udf6b",

            "[糖果]": "\ud83c\udf6c",
            "[棒棒糖]": "\ud83c\udf6d",
            "[蜂蜜罐]": "\ud83c\udf6f",
            "[苹果]": "\ud83c\udf4e",
            "[青苹果]": "\ud83c\udf4f",
            "[橘子]": "\ud83c\udf4a",

            "[柠檬]": "\ud83c\udf4b",
            "[樱桃]": "\ud83c\udf52",
            "[葡萄]": "\ud83c\udf47",
            "[西瓜]": "\ud83c\udf49",
            "[草莓]": "\ud83c\udf53",
            "[水蜜桃]": "\ud83c\udf51",

            "[甜瓜]": "\ud83c\udf48",
            "[香蕉]": "\ud83c\udf4c",
            "[梨子]": "\ud83c\udf50",
            "[菠萝]": "\ud83c\udf4d",
            "[甘薯]": "\ud83c\udf60",
            "[茄子]": "\ud83c\udf46",

            "[西红柿]": "\ud83c\udf45",
            "[玉米]": "\ud83c\udf3d",
        };
        var unifiedArr = [];
        var unifiedObj = getUnifiedObj(); 

        var parse = function(value) {
            var reg = new RegExp("\\[(.*?)\\]", 'g');
            var parseValue = value.replace(reg, function (input) {
                if (emojiArr[input]) {
                    return emojiArr[input]
                }
                return input;
            })
            return parseValue;
        }

        /**
         * get object with emoji code as key and title as value
         * ie. "\ud83d\ude04": "[高兴]"
         */
        function getUnifiedObj () {
            var obj = {};
            for (var attr in emojiArr) {
                obj[emojiArr[attr]] = attr;

                unifiedArr.push({
                    unified: emojiArr[attr], 
                    title: attr
                });
            }


            return obj;
        }

        var getEmojiIndex = function (unified) {
            for (var i = 0, len = unifiedArr.length; i < len; i++) {
                if (unifiedArr[i].unified.toLowerCase() === unified.toLowerCase()) {
                    return i;
                }
            }

            return -1;
        }

        var colns, content, title;
        var transformEmojiSelectData = function (attr) {
            var selectData = null;
            var emojiData = emoji.data;
            
            colns = emoji.replace_colons(emojiData[attr][0][0]);
            content = emoji.replace_unified(colns);
            title = unifiedObj[emojiData[attr][0][0]];

            if (title) {
                title = title.replace(/^\[/, '').replace(/\]$/, '');
                selectData = {
                    'unified': attr, 
                    'title': title, 
                    'content': content, 
                    'index': getEmojiIndex(colns)
                };
            }

            return selectData;
        }

        /**
         * emojiToShow:emoji data which in emojiArr(with a title attribute)
         */
        var emojiToShow = [];
        var getEmojiToShow = function () {
            if (emojiToShow.length > 0) {
                return emojiToShow;
            }

            for (var attr in emoji.data) {
                var emojiItem = transformEmojiSelectData(attr);

                if (emojiItem !== null) {
                    emojiToShow.push(emojiItem);
                }
            }

            return emojiToShow;
        }

        return {
            parse: parse, 
            getUnifiedObj: getUnifiedObj, 
            getEmojiToShow: getEmojiToShow
        }
        
    });